.class public Lcom/kwad/sdk/splashscreen/b/a;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/kwad/sdk/reward/a/a;


# instance fields
.field private a:Ljava/lang/String;

.field private b:Lcom/kwad/sdk/contentalliance/detail/video/a;

.field private c:Lcom/kwad/sdk/api/KsVideoPlayConfig;

.field private d:J


# direct methods
.method public constructor <init>(Lcom/kwad/sdk/core/response/model/AdTemplate;Lcom/kwad/sdk/contentalliance/detail/video/DetailVideoView;Lcom/kwad/sdk/api/KsVideoPlayConfig;)V
    .locals 2
    .param p1    # Lcom/kwad/sdk/core/response/model/AdTemplate;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Lcom/kwad/sdk/contentalliance/detail/video/DetailVideoView;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p3, p0, Lcom/kwad/sdk/splashscreen/b/a;->c:Lcom/kwad/sdk/api/KsVideoPlayConfig;

    invoke-static {p1}, Lcom/kwad/sdk/core/response/b/c;->e(Lcom/kwad/sdk/core/response/model/AdTemplate;)Lcom/kwad/sdk/core/response/model/AdInfo;

    move-result-object p3

    invoke-static {p3}, Lcom/kwad/sdk/core/response/b/a;->x(Lcom/kwad/sdk/core/response/model/AdInfo;)Ljava/lang/String;

    move-result-object p3

    invoke-static {}, Lcom/kwad/sdk/core/diskcache/b/a;->a()Lcom/kwad/sdk/core/diskcache/b/a;

    move-result-object v0

    invoke-virtual {v0, p3}, Lcom/kwad/sdk/core/diskcache/b/a;->c(Ljava/lang/String;)Ljava/io/File;

    move-result-object p3

    if-eqz p3, :cond_0

    invoke-virtual {p3}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p3}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p3

    iput-object p3, p0, Lcom/kwad/sdk/splashscreen/b/a;->a:Ljava/lang/String;

    :cond_0
    new-instance p3, Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-direct {p3, p2}, Lcom/kwad/sdk/contentalliance/detail/video/a;-><init>(Lcom/kwad/sdk/contentalliance/detail/video/DetailVideoView;)V

    iput-object p3, p0, Lcom/kwad/sdk/splashscreen/b/a;->b:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-static {p1}, Lcom/kwad/sdk/core/response/b/c;->e(Lcom/kwad/sdk/core/response/model/AdTemplate;)Lcom/kwad/sdk/core/response/model/AdInfo;

    move-result-object p1

    invoke-static {p1}, Lcom/kwad/sdk/core/response/b/a;->i(Lcom/kwad/sdk/core/response/model/AdInfo;)J

    move-result-wide v0

    iput-wide v0, p0, Lcom/kwad/sdk/splashscreen/b/a;->d:J

    iget-object p1, p0, Lcom/kwad/sdk/splashscreen/b/a;->b:Lcom/kwad/sdk/contentalliance/detail/video/a;

    new-instance p3, Lcom/kwad/sdk/splashscreen/b/a$1;

    invoke-direct {p3, p0, p2}, Lcom/kwad/sdk/splashscreen/b/a$1;-><init>(Lcom/kwad/sdk/splashscreen/b/a;Lcom/kwad/sdk/contentalliance/detail/video/DetailVideoView;)V

    invoke-virtual {p1, p3}, Lcom/kwad/sdk/contentalliance/detail/video/a;->a(Lcom/kwad/sdk/core/i/a/c$e;)V

    return-void
.end method

.method static synthetic a(Lcom/kwad/sdk/splashscreen/b/a;)Lcom/kwad/sdk/contentalliance/detail/video/a;
    .locals 0

    iget-object p0, p0, Lcom/kwad/sdk/splashscreen/b/a;->b:Lcom/kwad/sdk/contentalliance/detail/video/a;

    return-object p0
.end method

.method private i()V
    .locals 3

    new-instance v0, Lcom/kwad/sdk/contentalliance/detail/video/b$a;

    invoke-direct {v0}, Lcom/kwad/sdk/contentalliance/detail/video/b$a;-><init>()V

    iget-object v1, p0, Lcom/kwad/sdk/splashscreen/b/a;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/contentalliance/detail/video/b$a;->a(Ljava/lang/String;)Lcom/kwad/sdk/contentalliance/detail/video/b$a;

    move-result-object v0

    iget-wide v1, p0, Lcom/kwad/sdk/splashscreen/b/a;->d:J

    invoke-virtual {v0, v1, v2}, Lcom/kwad/sdk/contentalliance/detail/video/b$a;->a(J)Lcom/kwad/sdk/contentalliance/detail/video/b$a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/b$a;->a()Lcom/kwad/sdk/contentalliance/detail/video/b;

    move-result-object v0

    iget-object v1, p0, Lcom/kwad/sdk/splashscreen/b/a;->b:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v1, v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->a(Lcom/kwad/sdk/contentalliance/detail/video/b;)V

    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/b/a;->c:Lcom/kwad/sdk/api/KsVideoPlayConfig;

    if-eqz v0, :cond_0

    invoke-interface {v0}, Lcom/kwad/sdk/api/KsVideoPlayConfig;->isVideoSoundEnable()Z

    move-result v0

    invoke-virtual {p0, v0}, Lcom/kwad/sdk/splashscreen/b/a;->a(Z)V

    :cond_0
    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/b/a;->b:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->d()V

    return-void
.end method


# virtual methods
.method public a()J
    .locals 2

    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/b/a;->b:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->l()J

    move-result-wide v0

    return-wide v0
.end method

.method public a(Lcom/kwad/sdk/contentalliance/detail/video/c;)V
    .locals 1
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    if-nez p1, :cond_0

    return-void

    :cond_0
    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/b/a;->b:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0, p1}, Lcom/kwad/sdk/contentalliance/detail/video/a;->a(Lcom/kwad/sdk/contentalliance/detail/video/c;)V

    return-void
.end method

.method public a(Z)V
    .locals 1

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/kwad/sdk/splashscreen/b/a;->b:Lcom/kwad/sdk/contentalliance/detail/video/a;

    const/high16 v0, 0x3f800000    # 1.0f

    goto :goto_0

    :cond_0
    iget-object p1, p0, Lcom/kwad/sdk/splashscreen/b/a;->b:Lcom/kwad/sdk/contentalliance/detail/video/a;

    const/4 v0, 0x0

    :goto_0
    invoke-virtual {p1, v0, v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->a(FF)V

    return-void
.end method

.method public a_()V
    .locals 1

    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/b/a;->b:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->a()Lcom/kwad/sdk/core/i/a/c;

    move-result-object v0

    if-nez v0, :cond_0

    invoke-direct {p0}, Lcom/kwad/sdk/splashscreen/b/a;->i()V

    :cond_0
    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/b/a;->b:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->e()V

    return-void
.end method

.method public b(Lcom/kwad/sdk/contentalliance/detail/video/c;)V
    .locals 1
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    if-nez p1, :cond_0

    return-void

    :cond_0
    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/b/a;->b:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0, p1}, Lcom/kwad/sdk/contentalliance/detail/video/a;->b(Lcom/kwad/sdk/contentalliance/detail/video/c;)V

    return-void
.end method

.method public b_()V
    .locals 0

    invoke-virtual {p0}, Lcom/kwad/sdk/splashscreen/b/a;->g()V

    return-void
.end method

.method public c()V
    .locals 1

    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/b/a;->b:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->f()V

    return-void
.end method

.method public d()V
    .locals 0

    invoke-virtual {p0}, Lcom/kwad/sdk/splashscreen/b/a;->c()V

    return-void
.end method

.method public f()V
    .locals 1

    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/b/a;->b:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->h()V

    return-void
.end method

.method public g()V
    .locals 1

    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/b/a;->b:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->g()V

    return-void
.end method

.method public h()V
    .locals 1
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/b/a;->b:Lcom/kwad/sdk/contentalliance/detail/video/a;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->m()V

    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/b/a;->b:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->h()V

    :cond_0
    return-void
.end method
